package org.jeecg.modules.peopleTask.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.peopleTask.entity.IndividualGoal;

import java.util.List;

/**
 * @Description: 个人目标
 * @Author: jeecg-boot
 * @Date:   2023-12-20
 * @Version: V1.0
 */
public interface IndividualGoalMapper extends BaseMapper<IndividualGoal> {

    @Select("select i.id, i.create_by, i.create_time, i.sys_org_code, i.target_name," +
            "u.realname person_name, i.issue_date, i.end_date from individual_goal i " +
            "left join sys_user u on i.person_name = u.username;")
    List<IndividualGoal> getAll();
}
